.class public Lcom/hierynomus/smbj/common/SMBApiException;
.super Lcom/hierynomus/smbj/common/SMBRuntimeException;
.source "SMBApiException.java"


# instance fields
.field private status:Lcom/hierynomus/mserref/NtStatus;


# direct methods
.method public constructor <init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p2}, Lcom/hierynomus/smbj/common/SMBRuntimeException;-><init>(Ljava/lang/String;)V

    .line 2
    iput-object p1, p0, Lcom/hierynomus/smbj/common/SMBApiException;->status:Lcom/hierynomus/mserref/NtStatus;

    return-void
.end method

.method public constructor <init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/Throwable;)V
    .locals 0

    .line 3
    invoke-direct {p0, p2}, Lcom/hierynomus/smbj/common/SMBRuntimeException;-><init>(Ljava/lang/Throwable;)V

    .line 4
    iput-object p1, p0, Lcom/hierynomus/smbj/common/SMBApiException;->status:Lcom/hierynomus/mserref/NtStatus;

    return-void
.end method


# virtual methods
.method public getMessage()Ljava/lang/String;
    .locals 3

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/hierynomus/smbj/common/SMBApiException;->status:Lcom/hierynomus/mserref/NtStatus;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/hierynomus/smbj/common/SMBApiException;->status:Lcom/hierynomus/mserref/NtStatus;

    invoke-virtual {v1}, Lcom/hierynomus/mserref/NtStatus;->getValue()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, "): "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-super {p0}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getStatus()Lcom/hierynomus/mserref/NtStatus;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/smbj/common/SMBApiException;->status:Lcom/hierynomus/mserref/NtStatus;

    return-object v0
.end method
